package maliklund87.spiritrpg;

import org.newdawn.slick.Image;

public class Unit {
	private Position position;
	private Image sprite;
	
	public Unit(Position p, Image sprite){
		this.position = p;
		this.sprite = sprite;
	}
	
	public Image getImage(){
		return sprite;
	}
	
	public float getX(){
		return position.getX();
	}
	
	public float getY(){
		return position.getY();
	}
	
	public Position getPosition(){
		return position;
	}
	
	public void setX(float x){
		position.setX(x);
	}
	
	public void setY(float y){
		position.setY(y);
	}
	
	public void setPosition(Position p){
		this.position = p;
	}

}
